/**
 * 
 */
package com.disys.facade.support;

import java.util.List;

import com.disys.dao.support.Rec202EMPLPIMSupportDAO;
import com.disys.model.support.Rec202EMPLPIMSupport;

/**
 * @author Ubaid Raja
 *
 */
public class Rec202EMPLPIMSupportFacade {
	private Rec202EMPLPIMSupportDAO userDAO = new Rec202EMPLPIMSupportDAO();
	
	public List<Rec202EMPLPIMSupport> findAllRecords(){
		userDAO.beginTransaction();
		return userDAO.findAll();
	}
	
	public Rec202EMPLPIMSupport findSingleRecord(){
		userDAO.beginTransaction();
		return userDAO.find();
	}
	
	public void update(Rec202EMPLPIMSupport entity){
		userDAO.beginTransaction();
		userDAO.update(entity);
		userDAO.commitAndCloseTransaction();
	}
}
